Closes the currently open window. If a search is in progress, will abort the search.